<template>
    <div id="app">
        <keep-alive>
            <router-view v-if="$route.meta.keepAlive"></router-view>
        </keep-alive>
        <router-view v-if="!$route.meta.keepAlive"></router-view>
    </div>
</template>

<script>
  import FastClick from "fastclick";

  export default {
    created() {
      /*禁止ios缩放，双击和双指*/
      // window.onload=function () {
      //   document.addEventListener('touchstart',function (event) {
      //     if(event.touches.length>1){
      //       event.preventDefault();
      //     }
      //   });
      //   var lastTouchEnd=0;
      //   document.addEventListener('touchend',function (event) {
      //     var now=(new Date()).getTime();
      //     if(now-lastTouchEnd<=300){
      //       event.preventDefault();
      //     }
      //     lastTouchEnd=now;
      //   },false);
      //   document.addEventListener('gesturestart', function (event) {
      //     event.preventDefault();
      //   });
      // }
    },
    methods: {}
  };
</script>

<style lang="scss">
#app {
  position: relative;
  max-width: 10rem;
  margin: 0 auto;
}


@media only screen and (min-width: 980px) {
  .van-popup {
    max-width: 10rem;
    margin: 0 auto;
    left: 50% !important;
    margin-left: -5rem !important;
  }
}


</style>